<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$product['title']}</title>
<meta name="keywords" content="{$product['keywords']}" />
<meta name="description" content="{$product['description']}" />
<link href="{$GLOBALS['TURL']}style/style.css" rel="stylesheet" type="text/css" />
<link href="{$GLOBALS['TURL']}style/product.css" rel="stylesheet" type="text/css" />
<script src="{$GLOBALS['WWW']}include/js/jquery.js" language="javascript"></script>
<script type="text/javascript" src="{$GLOBALS['TURL']}js/product.js"></script>
<style type="text/css">
.product ul li {width: 160px;}
.product ul li img {width:145px;}
</style>
</head>

<body>
{include="head.html"}
<div class="wpm list">
  <div class="tab11"></div>
  <div class="tab1 tab1b main">
    <div class="l">
      <div class="columnc"><h2>{$type['classname']}</h2></div>
      <div class="columncl">
      {loop table="classtype" pid="$type["tid"]" not="1" as="t"}
      <a href="{$t['url']}"{if($type['tid']==$t['tid'])} class="c"{/if}>{$t['classname']} </a>
      {/loop}
      </div>
    </div>
    <div class="r">
    <div class="content">
		<div class="position">当前位置：{$positions}</div>
		<div class="c"><h1>{$product['title']}</h1></div>
		<div class="c t">发布时间：{fun date('Y-m-d H:i:s',$product['addtime'])} 点击：<script src="{$GLOBALS['WWW']}index.php?c=product&a=hits&id={$product['id']}" type="text/javascript"></script></div>
		<div class="c f2">{$product['body']}</div>
		<div class="c t" style="text-align:left;"><strong style="padding-left:10px; color:#666;">产品图集</strong></div>
		<div class="c">
            <div class="product" style="width:740px;">
                <div class="wrapper" style="width:670px;">
                  <ul>
                    {foreach fileall($product['photo']) as $v}
                    <li><a href="{$v[0]}" target="_blank"><img src="{$v[0]}" /><p>{$v[1]}</p></a></li>
                    {/foreach}
                  </ul>        
                </div>
            </div>
        </div>
        <div class="c"><ul class="pages">{$pages}</ul></div>
        <div class="c prev">
        	{if($aprev)}上一篇：<a href="{$aprev['url']}">{$aprev['title']}</a>{/if}
            {if($anext)}下一篇：<a href="{$anext['url']}">{$anext['title']}</a>{/if}
        </div>
	</div>
       <div class="comment">
         <div class="t c">产品咨询</div>
         <div class="i c">
<script type="text/javascript">
function newvercode(){
	document.getElementById("vercodeimg").src="{$GLOBALS['WWW']}include/vercode.php?a="+Math.random();
}
function comment_ret(){
	if(document.comment.body.value.length==''){alert("请输入咨询内容！");return false;}
	if(document.comment.vercode.value.length==''){alert("请输入验证码！");return false;}
	if(document.comment.body.value.length>500){alert("咨询内容不能超过500字！");return false;}
}
</script>
         <form method="post" action="{$GLOBALS['WWW']}index.php?c=comment&m=product" name="comment" onsubmit="return comment_ret()">
         <input name="aid" type="hidden" value="{$product['id']}" />
         <dl><dt>内容:</dt><dd><textarea name="body" style="width:500px; height:50px;" class="inp"></textarea></dd></dl>
         <dl>{if($GLOBALS['G_DY']['vercode']==1)}<dt>验证码:</dt><dd><input name="vercode" type="text" style="width:50px;" class="inp" /></dd><dd><img src="{$GLOBALS['WWW']}include/vercode.php" id="vercodeimg" width="58" height="24" onclick="newvercode();" style="cursor:pointer;" /></dd>{else}<dt>&nbsp;</dt>{/if}<dd><input name="" type="submit" value="提交" class="btnmini" /></dd></dl>

         </form>
         </div>
         <div class="list">
         {foreach $comments as $s}
         <dl><dt>{$s['user']} 在 {fun date('Y-m-d H:i:s',$s['addtime'])} 评论：</dt>
         <dd>{$s['body']}{if($s['reply'])}<br /><span style="color:#C00">管理员回复：{$s['reply']}</span>{/if}</dd></dl>
         {/foreach}
         </div>
         <div class="c pages">{$comment_page}</div>
       </div>
    </div>
  </div>
  <div class="tab12 mban"></div>
</div>
{include="bottom.html"}
</body>
</html>
